#!python
# -*- coding: utf-8 -*-
__all__ = ["PAY_INTERFACE_ALLOW_KEYS", "TRADE_STATUS", "PAYMENT_TYPES" , "LOGISTICS_TYPES", "ALIPAY_RETURN_PARAMETERS" ]

PAY_INTERFACE_ALLOW_KEYS= [
        "service",
        "partner",
        "_input_charset",
        "sign_type",
        "sign",
        "notify_url",
        "return_url",
        "out_trade_no",
        "subject",
        "payment_type",
        "logistics_type",
        "logistics_fee",
        "logistics_payment",
        "price",
        "quantity",
        "seller_email",
        "buyer_email",
        "seller_id",
        "buyer_id",
        "seller_account_name",
        "buyer_account_name",
        "body",
        "show_url",
        "total_fee",
        "discount",
        "receive_name",
        "receive_address",
        "receive_zip",
        "receive_phone",
        "receive_mobile",
        "logistics_type_1",
        "logistics_fee_1",
        "logistics_payment_1",
        "logistics_type_2",
        "logistics_fee_2",
        "logistics_payment_2",
        "t_s_send_1",
        "t_s_send_2",
        "t_b_rec_post",
        "it_b_pay",
        "token",
        ]

ALIPAY_RETURN_PARAMETERS = [
        "is_success",
        "partnerId",
        "sign_type",
        "sign",
        "charset",
        "notify_id",
        "notify_type",
        "notify_time",
        "trade_no",
        "subject",
        "price",
        "quantity",
        "seller_email",
        "buyer_email",
        "seller_id",
        "buyer_id",
        "discount",
        "total_fee",
        "trade_status",
        "is_total_fee_adjust",
        "use_coupon",
        "out_trade_no",
        "body",
        "payment_type",
        "logistics_type",
        "logistics_fee",
        "logistics_payment",
        "gmt_logistics_modify",
        "buyer_actions",
        "seller_actions",
        "gmt_create",
        "gmt_payment",
        "refund_status",
        "gmt_refund",
        "receive_name",
        "receive_address",
        "receive_zip",
        "receive_phone",
        "receive_mobile",
        ]

LOGISTICS_TYPES = {
        "POST": u"平邮",
        "EXPRESS": u"其他快递",
        "EMS": "EMS"
        }

PAYMENT_TYPES = {
        "BUYER_PAY": u"物流买家承担运费",
        "SELLER_PAY": u"物流卖家承担运费",
        "BUYER_PAY_AFTER_RECEIVE": u"买家到货付款，运费显示但不计入总价",
        }

TRADE_STATUS = {
        "WAIT_BUYER_PAY": u"等待买家付款",
        "WAIT_SELLER_SEND_GOODS": u"买家已付款，等待卖家发货",
        "WAIT_BUYER_CONFIRM_GOODS": u"卖家已发货，等待买家确认",
        "TRADE_FINISHED": u"交易成功结束",
        "TRADE_CLOSED": u"交易中途关闭（已结束，未成功完成）",
        "WAIT_SELLER_AGREE": u"退款协议等待卖家确认中",
        "SELLER_REFUSE_BUYER": u"卖家不同意协议，等待买家修改",
        "WAIT_BUYER_RETURN_GOODS": u"退款协议达成，等待买家退货",
        "WAIT_SELLER_CONFIRM_GOODS": u"等待卖家收货",
        "REFUND_SUCCESS": u"退款成功",
        "REFUND_CLOSED": u"退款关闭",
        }
